package com.genokon.log.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author by baichaoda
 * @date 2020/7/28 16:23
 */
@Slf4j
@RestController
public class TestController {

    @GetMapping("hello/{str}")
    public String hello(@PathVariable(value = "str", required = false) String str){
        log.trace("trace....");
        log.debug("debug....");
        log.info("input...." + str);
        log.warn("warn....");
        log.error("error in hello() method");
        log.info("..........");
        return "Hello , " + str;
    }
}
